<?php

namespace App\Providers;

use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        //增加用户
        'App\Events\AddCustomerEvent' => [
            'App\Listeners\AddCustomerListener',
            'App\Listeners\AddCustomerMiniListener'
        ],
        //分配用户
        'App\Events\AllotCustomerEvent'=>[
            'App\Listeners\AllotCustomerListener',
        ],
        'App\Events\SendBaoxiaoEvent'=>[
            'App\Listeners\SendBaoxiaoListener'
        ],
        //报备
        'App\Events\SendBaobeiEvent'=>[
            'App\Listeners\SendBaobeiListener'
        ]
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
